package org.example.controller;

import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.example.bean.req.DrillViewConfigReq;
import org.example.dao.mapper.DynamicKpiColumnMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@AllArgsConstructor
@RequestMapping(value = "/kpi")
public class KpiController {

    private final DynamicKpiColumnMapper dynamicKpiColumnMapper;

    @GetMapping("/view-config")
    @ApiOperation("获取下钻得页面配置信息")
    public Object viewConfig() {
        return null;
    }

    @GetMapping("/test")
    public Object test(@RequestParam(value = "status", required = false) List<Integer> status) {
        System.out.println(status);
        return status;
    }
}
